<?php
if(isset($_GET['opt']))
{
	$opt = $_GET['opt'];
	$moduleID = $moduleService->getModuleIDByFuncAndOpt($context, $result, $func, $opt);
	$permit = $permitService->checkPermition($context, $result, $_SESSION['user']['type'], $moduleID);

	if($opt == "reportArticle" && $permit ==true)
	{
		$smarty->display($templateDir . "/temp1/reportArticle.tpl");
	}
	
	if($opt == "reportHistoryPrice" && $permit ==true)
	{
		$smarty->display($templateDir . "/temp1/reportHistoryPrice.tpl");
	}
	
	if($opt == "reportTurnoverByCus" && $permit ==true)
	{
		$smarty->display($templateDir . "/temp1/reportTurnoverByCus.tpl");
	}
}
?>